package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class DropDomainConstraintDefinition implements AlterDomainAction {

    private int beginIndex;
    private int endIndex;
    private SchemaQualifiedName constraintName;

    public DropDomainConstraintDefinition(int beginIndex, SchemaQualifiedName constraintName) {
        this.beginIndex = beginIndex;
        this.endIndex = constraintName.getEndIndex();
        this.constraintName = constraintName;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public SchemaQualifiedName getConstraintName() {
        return constraintName;
    }

}
